package com.diana.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author anzhi
 * @since 2019-12-05
 */
@TableName("product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "productId",type = IdType.ID_WORKER)
    private String productId;
    private String productName;
    private Integer num;
    private Date createTime;
    private Date updateTime;


    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Product{" +
        ", productId=" + productId +
        ", productName=" + productName +
        ", num=" + num +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
